<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 70%;
            padding: 15px;
            margin: 70px auto 0;
            background-color: antiquewhite;
            border-radius: 7px;
            display: grid;
            /* grid-template-columns: repeat(4,1fr); */
            grid-template-columns: repeat(auto-fill,minmax(234px,1fr));  
            gap: 30px;
        }
        .bb{
            /* width: 120px; */
            height: 300px;
            border-radius: 7px;
            background-color: pink;
            border: 1px solid palevioletred;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="bb">grid</div>
        <div class="bb">grid</div>
        <div class="bb">grid</div>
        <div class="bb">grid</div>
        <div class="bb">grid</div>
        <div class="bb">grid</div>
        <div class="bb">grid</div>
        <div class="bb">grid</div>
        <div class="bb">grid</div>
        <div class="bb">grid</div>
        <div class="bb">grid</div>
        <div class="bb">grid</div>
    </div>
</body>
</html>